<template>
    <div class="vconsole-container"></div>
</template>

<script>
// 建议测试环境mian.js全局引入
// import VConsole from 'vconsole';
// const vConsole = new VConsole();
export default {
    created() {
       this.initVConsole()
    },
    methods: {
         initVConsole() {
             import('vconsole').then((VConsole) => {
                this.vConsole = new VConsole.default();
                console.log('测试错误输出')
            })
        }
    },
    beforeDestroy() {
        this.vConsole.destroy()
    }
}
</script>
